//
//  NoteDAODelegate.h
//  NoteDemo
//
//  Created by 郑火 on 16/2/16.
//  Copyright © 2016年 zwz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Note.h"
@protocol NoteDAODelegate <NSObject>
@optional
/**
 *  增加数据完成
 */
-(void)createFinished;
-(void)createFailed:(NSError*)error;
/**
 *  删除数据完成
 */
-(void)deleteFinished;
-(void)deleteFailed:(NSError*)error;
/**
 *  修改数据完成
 */
-(void)modifyFinished;
-(void)modifyFailed:(NSError*)error;
/**
 * 根据id查询数据完成
 *
 *  @param model 查询得到的结果
 */
-(void)findByIdFinished:(Note*)model;
-(void)findByIdFailed:(NSError*)error;
/**
 *  查询所有数据完成
 *
 *  @param listdata 数据字典列表
 */
-(void)findAllFinished:(NSMutableArray*)listdata;
-(void)findAllFailed:(NSError*)error;
@end
